package com.eorchis.module.loginauthentication.service;

import java.util.List;

import com.eorchis.core.service.IBaseService;
import com.eorchis.module.loginauthentication.domain.LoginAuthenticationBean;
import com.eorchis.module.loginauthentication.domain.SysDepSysRoleView;
import com.eorchis.module.loginauthentication.ui.commond.LoginAuthenticationQueryCommond;
import com.eorchis.module.security.cas.domain.Role;
import com.eorchis.module.trainingquestionnaire.ui.commond.QuestionnaireQueryCommond;

/**
 * 
 * Title: ConfigurationService<br>
 * Description: <br>
 * Copyright @ 2011~2015 Goldgov .All rights reserved.<br>
 * 
 * @author GuoL
 * @createDate 2015-8-14
 * @version $Revision: $
 */
public interface ILoginAuthenticationService extends IBaseService {
	
	
	/**
	 * @判断人员是否存在
	  * @Name: userLogin
	  * @Description: @param queryCommond
	  * @Description: @return
	  * @Author: GUOLEI
	  * @Version: V1.00
	  * @Create Date: 2016-2-14上午10:03:28
	  * @Parameters: ILoginAuthenticationService
	  * @Return: LoginAuthenticationBean
	 */
	public LoginAuthenticationBean userLogin(QuestionnaireQueryCommond queryCommond);

	/**
	 * 判断是否为本班学员
	 * @return
	 * @author LongJZ
	 * @date 2016-2-18
	 */
	public boolean isThisClassUser(QuestionnaireQueryCommond queryCommond);

	/**
	 * 判断班级评估方式
	 * @author RongSL
	 * @Date 2017-02-14
	 * */
	public int isAssessmentMode(QuestionnaireQueryCommond queryCommond);
	
	/**
	 * 判断账号是否存在or判断密码是否错误
	 * @author RongSL
	 * 2018年3月28日
	 * */
	public int isExistUser(LoginAuthenticationQueryCommond queryCommond) throws Exception;
	
	/**
	 * 查询人员角色权限表
	 * */
	public List<SysDepSysRoleView> findUumSysDepRoleView(LoginAuthenticationQueryCommond queryCommond) throws Exception;
	
	/**
	 * 查询角色（学员用）
	 * */
	public Role findRole(LoginAuthenticationQueryCommond queryCommond) throws Exception;
}
